/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ifcSoft.view.fileFilter;

import java.io.File;
import javax.swing.filechooser.*;

/**
 *
 * @author kthayer
 */
public class SOMFileFilter extends FileFilter {

  @Override
  public boolean accept(File f) {
    if (f.isDirectory()) {
      return true;
    }
    String name = f.getName();
    if(name.endsWith(".som")){
      return true;
    }

    return false;
  }



  @Override
 public String getDescription() {
    return ".som - Self-Organizing Map file";
  }
}
